import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('PlayRoleManager')
export class PlayRoleManager extends Component {

    @property(Node)
    private haoSanNode:Node;

    @property(Node)
    private zhuZiNode:Node;

    @property(Node)
    private yinSiNode:Node;

    @property(Node)
    private yinWuNode:Node;

    private aSans:Node[] = [];

    @property(Node)
    private closePageNode:Node;

    start() {
        this.aSans.push(this.haoSanNode);

        this.closePageNode.on(Node.EventType.TOUCH_END, () => {
            this.closeRole("");
        });
    }

    public showRole(name:string) {
        this.node.setPosition(0, 0, 0)
        this.node.active = true;
    }


    public closeRole(name:string) {
        

        this.node.active = false;
    }


    update(deltaTime: number) {
        
    }
}

